MultiSafepay\WooCommerce\PaymentMethods\Base\BasePaymentMethod D

Total Complexity 129
Dependencies 10
Dependents 5
Total lines 951
Lines of code 566
Logical lines of code 227
Comment lines 183
Methods 35
Properties 11

Methods 35

Method Rating Maintainability Complexity Lines of code
add_form_fields()
C
27
19 172
enqueue_multisafepay_scripts_by_gateway_code()
B
41 19 49
validate_fields()
A
52 10 23
is_payment_component_enabled()
S
55 7 20
get_payment_method_type()
S
58 7 18
admin_editing_checkout_page()
S
61 7 10
__construct()
S
45 3 43
common_wallets_data()
S
55 4 19
enqueue_payment_component_scripts()
S
57 4 16
build_googlepay_wallet_variables()
S
53 3 24
build_applepay_wallet_variables()
S
55 3 19
get_google_apple_pay_use_button()
S
66 4 7
can_refund_order()
S
65 4 9
enqueue_payment_component_styles()
S
64 3 11
process_payment()
S
54 2 19
is_qr_enabled()
S
63 3 10
is_qr_only_enabled()
S
63 3 10
is_ideal_2_0()
S
64 3 10
is_payment_method_type_direct()
S
75 2 4
check_direct_payment_methods_without_components()
S
68 2 8
has_fields()
S
72 2 6
is_tokenization_enabled()
S
67 2 7
get_payment_method_id()
S
80 1 3
get_payment_method_gateway_code()
S
81 1 3
get_defined_direct_payment_methods_without_components()
S
79 1 3
get_payment_method_title()
S
81 1 3
get_payment_method_description()
S
70 1 7
get_payment_method_icon()
S
81 1 3
get_logo()
S
81 1 3
get_qr_width()
S
79 1 3
is_woocommerce_checkout_block_active()
S
79 1 3
payment_fields()
S
80 1 3
get_order_statuses()
S
72 1 5
get_countries()
S
76 1 4
get_user_roles()
S
67 1 9